<template>
  <div class="nav">
      <div class="btn_login">
        <el-button type="primary" icon="el-icon-user" @click="login()"
          >登录</el-button
        >
      </div>
      <div class="menu">
        <el-menu
          :default-active="activeIndex"
          class="el-menu-demo"
          mode="horizontal"
        >
          <el-menu-item index="1"
            ><router-link to="/" style="text-decoration: none;"
              ><span>数据展示</span></router-link
            ></el-menu-item
          >
          <el-menu-item index="2"
            ><router-link to="/data2" style="text-decoration: none;"
              ><span>账户数据</span></router-link
            ></el-menu-item
          >
          <el-menu-item index="3"
            ><router-link to="/data3" style="text-decoration: none;"
              ><span>账户信息</span></router-link
            ></el-menu-item
          >
        </el-menu>
      </div>
</template>
